<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>模板返利网－买模板返现金，免费装修，淘宝店铺装修模板免费买</title>
<link rel="stylesheet" type="text/css" href="/Public/css/admin.css" />
<script type="text/javascript" src="__ROOT__/Public/js/jquery.min.js"></script>
<script type="text/javascript" src="__ROOT__/Public/js/jquery.form.js"></script>
<script type="text/javascript" src="__ROOT__/Public/js/operamasks-ui.min.js"></script>
<script src="http://a.tbcdn.cn/s/kissy/1.1.6/seed-min.js"></script>
<script src="http://a.tbcdn.cn/apps/pamirsshop/wiki/scripts/wiki.js"></script>
</head>
    
<body onload="bhtml()">
<script type="text/javascript">
	$(document).ready(function(e) {
		h=window.screen.height;
		w=window.screen.width;
		left1=(w-272)/2;
		top1=(h-227)/2-100;
		$(".loginbg").css("height",(window.screen.height-110)+"px");
		$("#loginForm").offset({left:left1,top:top1});
		$("#loginInfo").css("marginTop",top1-40);
        $("#loginName").focus(function(){
			if($(this).val()=="手机或用户名") $(this).val("");
			$(this).css("color","#000");
			});
		 $("#loginName").blur(function(){
			if($(this).val()==""){
				$(this).val("手机或用户名");
				$(this).css("color","#999");
				}			
			});	
		$("input.verify").blur(function(){
			$.post("__ROOT__/index.php/Public/checkverify",{"verify":$(this).val()},function(data){
				if(data.info=="ok") $(".check").css("background","url(/Public/images/ok.gif) no-repeat center center").show();
				else $(".check").css("background","url(/Public/images/no.gif) no-repeat center center").show();
				})	
			});	
		$("input.verify").focus(function(){
			$(".check").hide();
			});	
		
    });
<?php if(!empty($_SESSION['userid'])): ?>alert("您已经登录过了！");
document.location="__APP__/Index";<?php endif; ?>
</script>
<div class="loginbg">
<div id="bd">
<div id="loginInfo">
管理员登录
</div>
<form action="__URL__/login_do" method="post" id="loginForm">
	<?php if(!empty($err)): ?><div class="tips" style="width:250px; text-align:center; line-height:30px; color:#f00;"><?php echo ($err); ?></div><?php endif; ?>
    <div class="formItem"><label>用户名</label><input type="text" name="name" id="loginName" value="手机或用户名"/></div>
    <div class="formItem"><label>密&nbsp;&nbsp;码</label><input type="password" name="pwd"/></div>
    <div class="formItem">
        <label for="verify">验证码</label>
        <input type="text" name="verify"  class="verify" />
        <img id="verify" alt="点击换一张图" src="__ROOT__/index.php/Public/verify/" onClick="this.src='__ROOT__/index.php/Public/verify/Math.random()'" />
        <div class="check"></div>
        <a class="verify_tip" onClick="document.getElementById('verify').src='__ROOT__/index.php/Public/verify/'+Math.random()" href="javascript:void(0);">看不清<br/>换一张</a>
    </div>    
    <div class="formItem" style="margin-bottom:0px;"><input type="submit" value="登&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;录" id="loginBtn" /></div>
</form>
</div>
</div>
</body>
</html>